package zzzhc.image.recognize.nn;

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;

import org.joone.net.NeuralNet;

public class NNSaver {

	public void save(NeuralNet nn, TrainResult result, OutputStream out)
			throws IOException {
		ObjectOutputStream oos = new ObjectOutputStream(out);
		oos.writeObject(nn);
		oos.writeObject(result);
		oos.flush();
		oos.close();
	}

}
